
package com.jf.cloud.common.feign;

import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zz
 */
@FeignClient(value = "jfcloud-platform",contextId = "core-config")
public interface CoreConfigFeignClient {


    /**
     * 获取配置信息
     * @param key key
     * @return 配置信息json
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/core/getConfig")
    ServerResponseEntity<String> getConfig(@RequestParam("key") String key);

}
